proofs as terms